class CreateSubHotPosts < ActiveRecord::Migration
  def self.up
    create_table :sub_hot_posts do |t|
      t.integer :hot_post_id
      t.text :content
      t.string :author
      t.string :url
      t.datetime :released_at
      t.integer :words_count, :default => 0
      t.integer :position, :default => 0
      t.integer :page_num
      t.timestamps
    end
  end

  def self.down
    drop_table :sub_hot_posts
  end
end
